import React, { memo } from 'react'
import { renderRoutes } from 'react-router-config'
import Navigation from '../../common/navigation'
import {
    LeftWrapper,
    RightWrapper,
    HomeWrapper,
    FooterWrapper,
    LoadMore 
} from "./style"

export default memo(function Main(props) {

    const { route } = props;
    console.log(route);
    return (
        <div>
            <Navigation/>
            { renderRoutes(route.route) }
        </div>
    )
})
